// 组件可以根据getters文件的变量名获取state里面对应的属性值
// 导出设置的singer函数
export const singer = state => state.singer

// 播放器的相关
export const playing = state => state.playing

export const fullScreen = state => state.fullScreen

export const playlist = state => state.playlist

export const sequenceList = state => state.sequenceList

export const mode = state => state.mode

export const currentIndex = state => state.currentIndex

// 有个值需要计算而来，在state.js中没有设置,哪一项
export const currentSong = (state) => {
  return state.playlist[state.currentIndex] || {}
}

export const disc = state => state.disc

export const topList = state => state.topList

export const searchHistory = state => state.searchHistory
// 获取，播放历史
export const playHistory = state => state.playHistory
// 获取，收藏列表
export const favoriteList = state => state.favoriteList
